﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;

namespace SockLib.Device
{
    /// <summary>
    /// 一些通用方法
    /// </summary>
   public  class CommVoid
    {
        /// <summary>
        /// 判断字符串是不是数字
        /// </summary>
        /// <param name="s"></param>
        /// <returns></returns>
        public static bool IsInteger(string s)
        {
            string pattern = @"^\d*$";
            return Regex.IsMatch(s, pattern);
        }
    }
}
